<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div>hello div</div>
    <p>
      hello p

      <b>hello <i>!!</i></b>
    </p>
    <script>
      console.log(document.body.childNodes);
      const p = document.body.childNodes[3]; //<p>

      console.log(p.previousSibling.previousSibling);
    </script>
  </body>
</html>
